{{>header}}
<header>
    <div class="nav">
        <div class="logo">
            <h2><a class="bk" href="/">Bookmarkus</a></h2>
        </div>
        <div class="menu">
            <a class="m" href="/profil"><b>{{user.user}} 😸</b></a>
            <a class="spesial" href="/input">Input</a>
            <a class="m" href="/logout">Logout</a>
        </div>
    </div>
</header>

<main>
    <div id="content"> 
        <div class="kiri">
                <h3>Input Bookmark</h3>
                {{#if id}}
                <form action="/edit" method="post">
                {{else}}
                <form action="/input" method="post">
                {{/if}}
                    <input type="hidden" name="id" value="{{bookmark._id}}">
                    <label for="url">URL</label>
                    <input type="text" class="input" name="url" id="url" value="{{bookmark.url}}">
                    <label for="judul">Judul :</label>
                    <input type="text" class="input" name="judul" id="judul" value="{{bookmark.judul}}">
                    <label for="uraian">Uraian :</label>
                    <textarea name="uraian" class="input" id="uraian" cols="40" rows="6">{{bookmark.uraian}}</textarea>
                    <label for="tags">Tags :</label>
                    <input type="text" class="input" name="tags" id="tags" value="{{bookmark.tags}}">
                    <span class="hint">Masukkan tags <b>tanpa tanda #</b> dan dipisahkan dengan spasi </span>
                    <div class="baca_nanti">
                         <input class="i_nanti" type="checkbox" name="nanti" id="nanti" value="on" checked>
                         <label class="l_nanti" for="nanti">Baca nanti?</label>
                    </div> 
                    <input type="submit" value="Simpan"> <a class="batal" href="/">batal</a>
    
                </form>
        </div>
        <div class="kanan">
            <h3>Tagslist :</h3>
                <div class="tagslist">
                </div>
        </div>
    </div>
</main>
{{>footer}}
